package com.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.pojo.Attractions;

import java.util.List;

public interface AttractionsService extends IService<Attractions> {

    List<Attractions> selectAllAttractions(String name,Integer start,Integer pageSize);//条件+分页查询

    int count(String name);//条件查询总条数

    int deleteAttractions(Integer id);//删除景点

    int updateAttractions(Attractions attractions);//修改景点

    int updateAttractions2(Attractions attractions);

    Attractions selectAttractionsById(Integer id);//根据id查询景点
}
